package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_ghost_box", desc = "鬼市宝箱记录", autoSave = true, uploadCk = true)
public class LogGhostBox extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "宝箱id")
    private int boxId;
    @FieldTypeAnnotation(desc = "开启消耗")
    private String cost = "";
    @FieldTypeAnnotation(desc = "是否开启，1开启，0未开启")
    private boolean open;
    @FieldTypeAnnotation(desc = "开启奖励，没开启未为空")
    private String reward = "";

    public LogGhostBox(int activityId, long userId, int boxId, String cost, boolean open, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.boxId = boxId;
        this.cost = cost;
        this.open = open;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
